-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solution for spoj-cot #5073
base: master
Are you sure you want to change the base?
solution for spoj-cot #5073
Conversation
…t segment tree) The code solution for the problem count on tree from spoj on persistent segment tree concept
for more information, see https://pre-commit.ci
Hi, I just submitted this pull request. Please let me know if there’s anything I need to adjust or address. Thanks! |
Could you please help me resolve the problem "Some checks were not successful"? Is the " '''cpp " causing the problem? |
fyi, you can test ur mdx code at usaco.guide/editor |
hmm, it's giving this error:
|
I changed the solution metadata kind to internal after committing this change. I think I accidentally included it in a different pull request |
yeah thats what it looks like, just change the solution type to internal |
…data of the problem called count on tree)
I think I solved it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some misc style changes + other
for examples of how the code should roughly look, u can look at other internal solutions (here's a good example)
Co-authored-by: Justin Ji <68484800+TheGamingMousse@users.noreply.github.com>
Thank you for the suggestions! Is there anything else that you would suggest modifying? |
for more information, see https://pre-commit.ci
…code) Modified the explanation part and organized the code
I changed the code and the explanation part |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Changed the code according to the suggestions. Changed the format and added a constructor
for more information, see https://pre-commit.ci
@SansPapyrus683 The format is automatically changed by pre-commit. Therefore, the weird formatting is caused by pre-commit |
no yeah, to fix it you need to place the comment above the line of code as opposed to it being on the same line |
Moved the comments next to the code lines to a separate line
@SansPapyrus683 I moved the comments to separate lines |
for more information, see https://pre-commit.ci
Chnaged the method name to snake_case format, changed the name of struct to pacal case, changed the name fo the strcut from graph to tree, modified the constructor,
for more information, see https://pre-commit.ci
Changed the vraible names to more explanatory names
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
The code solution for the problem count on tree from spoj on persistent segment tree concept
Place an "x" in the corresponding checkbox if it is done or does not apply to this pull request.